package com.wjgl.service;

import java.util.List;

import com.wjgl.dao.PermissionDAO;
import com.wjgl.domain.Permission;

public class PermissionService {
	private PermissionDAO permissionDAO;

	public PermissionDAO getPermissionDAO() {
		return permissionDAO;
	}

	public void setPermissionDAO(PermissionDAO permissionDAO) {
		this.permissionDAO = permissionDAO;
	}
	
	public List<Permission> getAllPermissions(){
		return permissionDAO.findAll();
	}
	
	public Permission findPermissionById(int id){
		return permissionDAO.findById(id);
	}
}
